export class Animal {
  name: string
  age: number
  constructor(name: string, age: number) {
    this.name = name
    this.age = age
  }
  sayName() {
    console.log(`我是${this.name},今年${this.age}岁了`)
  }
  static tt = 123
  static sayName() {
    console.log('我是静态方法 sayName')
  }
}
const cat = new Animal('猫', 3)
const dog = new Animal('狗', 5)
class Father {
  public name: string
  protected age: number
  private money = 200
  public constructor(name: string, age: number) {
    this.age = age
    this.name = name
    this.money
  }
}
class Son extends Father {
  public sex: string
  public constructor(name: string, age: number, sex: string) {
    super(name, age)
    this.sex = sex
    this.age
  }
}
const s = new Son('张三', 18, '男')
